package redis.client.nedis.reply;

/**
 * @author gaodong
 * @version 1.0
 * @date 2020/11/18 9:46
 */
public class ErrorReply implements IReply<String> {
    public static final char MARKER = '-';
    private final String error;

    public ErrorReply(String error) {
        this.error = error;
    }

    @Override
    public String data() {
        return error;
    }

    @Override
    public String toString() {
        return error;
    }
}
